package com.aaa.controller;

import com.aaa.entity.Melody;
import com.aaa.service.MelodyService;
import com.aaa.util.DefaultMsg;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/melody")
public class MelodyController {
    @Resource
    private MelodyService melodyService;

    @RequestMapping("/listAllMelody")
    public DefaultMsg listAllMelody(String keyword){
        return melodyService.listAllMelody(keyword);
    }
    @RequestMapping("/melodselectl")
    public List<Melody> melodselectl(String pramykey, Integer pid){
        List<Melody> playselectq = melodyService.melodselecthxl(pramykey,pid);
        return playselectq;
    }

}
